package com.example.MyThread.ThreadTest01;

/**
 * @author Jason
 * @PACKAGE_NAME com.example.MyThread
 * @Description 第一种方式
 * @date 2023-12-10 18:23
 */
public class ThreadTest extends Thread {
    @Override
    public void run() {
        //书写要执行的代码
        for (int i = 0; i < 100; i++) {
            System.out.println(getName() + " Hello Thread" + i);
        }
    }
}
